1
کامپیوتر و شبکه::
داده نشست
In the sections that follow, I demonstrate how to store the cart data using the ASP.NET Core MVC session data feature and explain how this can be used to prevent the problem shown in Figure 9-5.
This is to ensure that the Angular application can parse the JSON session data correctly and is required when working directly with JSON strings rather than .NET objects.
The web service will store the data using the ASP.NET Core MVC session data feature, which will automatically manage the life of the data.
Not all cart data will result in completed purchases, and using session data will ensure that abandoned cart data will automatically expire and, as you will see, make it simple to provide the client with its client data when the user reloads the browser.
Add the NuGet packages shown in Listing 9-13 to install the ASP.NET Core MVC support for session data.
واژگان شبکه مترجمین ایران